package com.jbit.examSystem.service;

import com.jbit.examSystem.exception.AddException;
import com.jbit.examSystem.exception.RemoveException;
import com.jbit.examSystem.pojo.Question;
import com.jbit.examSystem.pojo.TestPaper;
import com.jbit.examSystem.param.TestPaperParam;
import com.jbit.examSystem.pojo.TestPaperDetail;

import java.util.List;

public interface TestPaperService {
    List<TestPaper> list(TestPaperParam param);

    TestPaper findById(int id);

    void add(TestPaper testPaper) throws AddException;

    void modify(TestPaper testPaper);

    void remove(Integer[] ids) throws RemoveException;

    void addDetail(Integer[] questionIds,Integer testPaperId)throws AddException;

    List<Question> getQuestionByTestPaperId(Integer testPaperId);
}
